package com.ganyu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ganyu.domain.ResponseResult;
import com.ganyu.domain.dto.AdminRoleDto;
import com.ganyu.domain.dto.AdminUserDto;
import com.ganyu.domain.entity.Role;
import com.ganyu.domain.entity.User;

/**
 * DATA: 2022/9/30
 * Author: 晨夕
 */
public interface RoleService extends IService<Role> {
    //获取角色列表
    ResponseResult getRoleList(Integer pageNum,Integer pageSize,String roleName,String status);

    //修改角色权限
    ResponseResult changeStatus(Long roleId ,String status);

    //添加角色
    ResponseResult addUser(AdminUserDto adminUserDto);

    //根据id查询角色信息
    ResponseResult selectUserById(Long id);

    //删除角色
    ResponseResult deleteUser(Long[] ids);

    //查询正常状态的role
    ResponseResult selectAllRole();
}
